package bean;

/*
* 封装分页信息
* */

import java.util.List;

public class Page {
    private long total;
    private int page = 1;
    private int size = 3;
    private List<?> rows;

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public List<?> getRows() {
        return rows;
    }

    public void setRows(List<?> rows) {
        this.rows = rows;
    }

    @Override
    public String toString() {
        return "Page{" +
                "total=" + total +
                ", page=" + page +
                ", size=" + size +
                ", rows=" + rows +
                '}';
    }
}